package jrain.fw.core.dao.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <pre>
 * 作者：489088214@qq.com 
 * 描述： SQL解析结果
 * </pre>
 */
public class SqlInfo {

	private String sql;

	private String countSql;

	private List<Object> params = new ArrayList<Object>();

	private Map<String, Object> mapper = new HashMap<>();

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public String getCountSql() {
		return countSql;
	}

	public void setCountSql(String countSql) {
		this.countSql = countSql;
	}

	public void addParam(Object param) {
		params.add(param);
	}

	public List<Object> getParams() {
		return params;
	}

	public void setParams(List<Object> params) {
		this.params = params;
	}

	public Map<String, Object> getMapper() {
		return mapper;
	}

	public void setMapper(Map<String, Object> mapper) {
		if (mapper == null) {
			mapper = new HashMap<>();
		}
		this.mapper = mapper;
	}

}
